package quanlydoanvao.baocaotonghop;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.StringTokenizer;

import javax.faces.model.SelectItem;

import org.apache.myfaces.custom.fileupload.UploadedFile;

import dbutil.ConnectDB;
import utils.DateUtils;
import utils.UtilsOnScopes;

public class BeanSearch {
	private String error;
    private String bieumaukq="/qldoanvao/baocaotonghop/emptyBieuMau.xhtml";
    private String tieuChi;
    private String thongtin1="" ;
    private String thongtin2="" ;
    private String thongtin3="";
    private String thongtin4="";
    private int thang ;
    private int nam;
    private String lable1 ="";
    private String lable2 ="";
    private String lable3 = "";
    private String lable4 = "";
    private String isDisable1 ="true";
    private String isDisable2 ="true";
    private String isDisable3 ="true";
    private String isDisable4 ="true";
    private String tongsoNguoi;
	private String tongSoDoanVao;
	private String tongSoNguoiTrongDoan;
    private List<TableDisplay> list;
    private StringBuilder dsnguoidi;
	private StringBuilder dsquoctich;
	private StringBuilder dshochieu;
	private StringBuilder dsgioitinh;
	private StringBuilder dsnamsinh;
	private StringBuilder dsnghenghiep;
	
    
	
	
	/**************************************
	 * Method name		: getSelectItem
	 * Return type		: SelectItem[]
	 * Decription		:tao ra cac selectItem
	 * Created date		: Jun 16, 2008
	 * Author			: Honglk
	 **************************************/
	public SelectItem[] getSelectItem() {
		SelectItem[] arr = new SelectItem[7];
		arr[0] = new SelectItem("0","---Chọn---");
		arr[1] = new SelectItem("1","Thời gian + Địa điểm");
		arr[2] = new SelectItem("2","Giới tính + Quốc tịch");
		arr[3] = new SelectItem("3","Quốc tịch + Giới tính");
		arr[4] = new SelectItem("4","Quốc tịch + Giới tính + Thời gian");
		arr[5] = new SelectItem("5","Quốc tịch + Giới tính + Địa điểm");
		arr[6] = new SelectItem("6","Quốc tịch + Giới tính + Thời gian + Địa điểm");
		return arr;
	}
	
	/**************************************
	 * Method name		: checkDate
	 * Return type		: boolean
	 * Description		:Kiem tra ngay nhap vao, xem co dung dinh dang hay khong?
	 * Created date		: Sep 10, 2008
	 * Author			: Honglk
	 **************************************/
	private boolean checkDate() {
		boolean result = true;
		int thangInt = DateUtils.LayThangHienTai();
		int namInt = DateUtils.LayNamHienTai();
		String thang = "";
		String nam = "";
		StringTokenizer token = null;
		try {
			if (this.tieuChi.equals("1") || this.tieuChi.equals("4")
					|| this.tieuChi.equals("6")) {
				if (this.tieuChi.equals("1") && !(this.thongtin1.equals(""))) {
					token = new StringTokenizer(this.thongtin1, "/ -");
				} else if (this.tieuChi.equals("4")
						&& !(this.thongtin3.equals(""))) {
					token = new StringTokenizer(this.thongtin3, "/ -");
				} else if (this.tieuChi.equals("6")
						&& !(this.thongtin3.equals(""))) {
					token = new StringTokenizer(this.thongtin3, "/ -");
				}
				if (token.countTokens() == 2) {
					while (token.hasMoreTokens()) {
						thang = token.nextToken();
						nam = token.nextToken();
						thangInt = Integer.parseInt(thang);
						namInt = Integer.parseInt(nam);
					}
					if (thangInt <= 0 || thangInt > 12) {
						this.setError("Bạn nhập tháng không đúng !");
						return result = false;
					} else if (nam.length() != 4) {
						this.setError("Lỗi,Năm phải có dạng 4 chữ số !");
						return result = false;
					}
					this.setThang(thangInt);
					this.setNam(namInt);
				} else if (token.countTokens() != 2) {
					this
							.setError("Lỗi, Phải nhập ngày dạng <br/>,<b>Tháng/Năm(Tháng-Năm)</b>");
					return result = false;
				}

			}
		} catch (Exception e) {
			e.printStackTrace();
			this
					.setError("Lỗi, Phải nhập ngày dạng ,<b>Tháng/Năm(Tháng-Năm)</b>");
			return result = false;
		}
		return result;
	}
	
	/**************************************
	 * Method name		: checkIsNull
	 * Return type		: boolean
	 * Description		:kiem tra cac input co null hay khong?
	 * Created date		: Sep 10, 2008
	 * Author			: Honglk
	 **************************************/
	public boolean checkIsNull(){
		boolean result = true;
		if(this.tieuChi.equals("1") || this.tieuChi.equals("2") || this.tieuChi.equals("3")){
			if(this.thongtin1.equals("") || this.thongtin2.equals("")){
				this.setError("Bạn chưa nhập đủ thông tin");
				return result = false;
			}
		}
		else if(this.tieuChi.equals("4") || this.tieuChi.equals("5")){
			if(this.thongtin1.equals("") || this.thongtin2.equals("") ||
			   this.thongtin3.equals("") ){
				this.setError("Bạn chưa nhập đủ thông tin");
				return result = false;
			}
		}
		else if(this.tieuChi.equals("6") ){
			if(this.thongtin1.equals("") || this.thongtin2.equals("") 
				|| this.thongtin3.equals("") || this.thongtin4.equals("")){
				this.setError("Bạn chưa nhập đủ thông tin");
				return result = false;
			}
		}
		return result;
		}
	
	/**************************************
	 * Method name		: view
	 * Return type		: String
	 * Description		:hien thi du lieu
	 * Created date		: Sep 10, 2008
	 * Author			: Honglk
	 **************************************/
	public String view(){
		this.setError("");
		this.tables();
		System.out.println(this.tieuChi);
		if(this.checkIsNull() == false){
			return "";
		}
		else if(this.checkDate() == false){
			return "";
		}
		else if(this.getList().size() <= 0){
			this.setError("Không có dữ liệu !");
			this.setBieumaukq("/qldoanvao/baocaotonghop/emptyBieuMau.xhtml");
			return "okBaoCaoTongHop";
		}
		else if (this.tieuChi.equals("1")){
			this.setBieumaukq("/qldoanvao/baocaotonghop/thoigiandiadiem.xhtml");
		}
		else if (this.tieuChi.equals("2")){
			this.setBieumaukq("/qldoanvao/baocaotonghop/gioitinhquoctich.xhtml");
		}
		else if (this.tieuChi.equals("3")){
			this.setBieumaukq("/qldoanvao/baocaotonghop/quoctichgioitinh.xhtml");
		}
		else if (this.tieuChi.equals("4")){
			this.setBieumaukq("/qldoanvao/baocaotonghop/quotichgioitinhthoigian.xhtml");
		}
		else if (this.tieuChi.equals("5")){
			this.setBieumaukq("/qldoanvao/baocaotonghop/quotichgioitinhdiadiem.xhtml");
		}
		else if (this.tieuChi.equals("6")){
			this.setBieumaukq("/qldoanvao/baocaotonghop/quoctichgioitinhthoigiandiadiem.xhtml");
		}
		return "okBaoCaoTongHop";
	}
	
	/**************************************
	 * Method name		: filtData
	 * Return type		: String
	 * Description		:Loc du lieu
	 * Created date		: Sep 10, 2008
	 * Author			: Honglk
	 **************************************/
	public String filtData(String tieuchi){
		String result = "";
		 if(tieuchi.equals("1") && this.checkDate() == true){
			result = "DATE_PART('month',A.ngayden)='" +this.thang +
			         "' AND DATE_PART('year',A.ngayden)= '" +this.nam+"'"
			         +" AND TRIM(LOWER(A.diadiemlamviec)) LIKE TRIM(LOWER('%"
					 + this.thongtin2 + "%'))"
			         ;
		}
		else if(tieuchi.equals("2")){
			result = "TRIM(LOWER(B.gioitinh)) LIKE TRIM(LOWER('%"
					 + this.thongtin1 + "%')) " +
					 " AND TRIM(LOWER(B.quoctich)) LIKE TRIM(LOWER('%"
					 + this.thongtin2 + "%'))"
					 ;
		}
		else if(tieuchi.equals("3")){
			result = "TRIM(LOWER(B.gioitinh)) LIKE TRIM(LOWER('%"
				+ this.thongtin2 + "%')) " +
				" AND TRIM(LOWER(B.quoctich)) LIKE TRIM(LOWER('%"
				+ this.thongtin1 + "%'))"
				;
		}
		else if(tieuchi.equals("4") && this.checkDate() == true){
			result = "TRIM(LOWER(B.gioitinh)) LIKE TRIM(LOWER('%"
				+ this.thongtin2 + "%')) " +
				" AND TRIM(LOWER(B.quoctich)) LIKE TRIM(LOWER('%"
				+ this.thongtin1 + "%')) " +
				" DATE_PART('month',A.ngayden)='" +this.thang +
		        "' AND DATE_PART('year',A.ngayden)= '" +this.nam+"'"
				;
		}
		else if(tieuchi.equals("5")){
			result = "TRIM(LOWER(B.gioitinh)) LIKE TRIM(LOWER('%"
				+ this.thongtin2 + "%')) " +
				" AND TRIM(LOWER(B.quoctich)) LIKE TRIM(LOWER('%"
				+ this.thongtin1 + "%'))"
				+" AND TRIM(LOWER(A.diadiemlamviec)) LIKE TRIM(LOWER('%"
				+ this.thongtin3 + "%'))"
				;
		}
		else if(tieuchi.equals("6") &&  this.checkDate() == true){
			result = "TRIM(LOWER(B.gioitinh)) LIKE TRIM(LOWER('%"
				+ this.thongtin2 + "%')) " +
				" AND TRIM(LOWER(B.quoctich)) LIKE TRIM(LOWER('%"
				+ this.thongtin1 + "%'))"
				+" AND TRIM(LOWER(A.diadiemlamviec)) LIKE TRIM(LOWER('%"
				+ this.thongtin4 + "%'))" +
				" AND DATE_PART('month',A.ngayden)='" +this.thang +
		        "' AND DATE_PART('year',A.ngayden)= '" +this.nam+"'"
				;
		}
		return result;
	}
	
	/**************************************
	 * Method name		: tables
	 * Return type		: String
	 * Description		:hien thi du lieu ra giao dien
	 * Created date		: Sep 10, 2008
	 * Author			: Honglk
	 **************************************/
	public String tables() {
		if(this.checkDate() == false){
			return "";
		}
		System.out.println(this.tieuChi);
		List<TableDisplay> list = new ArrayList<TableDisplay>();
		String cond=this.filtData(this.tieuChi);
		String SQL = "select DISTINCT E.sovb,E.coquandenghi,E.ngayxuatvb,E.noidung,A.diadiemlamviec," +
				" A.ngayden,C.linhvuc,D.soubndtinh,D.ngayphathanh,A.madoan,A.ngaydi " +
					  " from  doanvao A inner join dsnguoiden B on A.madoan =B.iddoanvao " +
		              " inner join mucdich C on A.idmucdich = C.id " +
		              " inner join vanbannhan D on A.idvbvao = D.id " +
		              " inner join vanbanden E on E.id = A.idvbden " +
		              " WHERE " + cond;
		System.out.println(SQL);
		ArrayList<HashMap<String, Object>> array = ConnectDB
				.getDataTypeList(SQL);
		
		this.setTongSoDoanVao("<b>Tổng số đoàn vào: "+String.valueOf(array.size() +"</b>"));
		for (HashMap<String, Object> row : array) {
			this.getMemberList((String) row.get("madoan"));
			row.put("nguoitrongdoan", this.getDsnguoidi().toString());
			row.put("dssohc", this.getDshochieu().toString());
			row.put("dsquoctich", this.getDsquoctich().toString());
			row.put("dsgioitinh", this.getDsgioitinh().toString());
			row.put("dsnamsinh", this.getDsnamsinh().toString());
			row.put("dsnghenghiep", this.getDsnghenghiep().toString());
			
			row.put("slthanhvientrongdoan", this.tongSoNguoiTrongDoan(row.get("madoan").toString()));
			String ngayxuatvb = (row.get("ngayxuatvb")== null?"":row.get("ngayxuatvb").toString());
			row.put("ngayxuatvanban", DateUtils.formatDate(ngayxuatvb));
			String ngayden = (row.get("ngayden")== null?"":row.get("ngayden").toString());
			row.put("ngaydenlamviec", DateUtils.formatDate(ngayden));
			String ngayphatvb = (row.get("ngayphathanh")== null?"":row.get("ngayphathanh").toString());
			row.put("ngayphathanhvb", DateUtils.formatDate(ngayphatvb));
		}
		int intTongNguoi = 0;
		try {
			if (array.size() > 0) {
				HashMap<String, Object> hash = new HashMap<String, Object>();
				int stt = 0;
				for (int i = 0; i < array.size(); i++) {
					hash = (HashMap<String, Object>) array.get(i);
					intTongNguoi += Integer.parseInt(this.tongSoNguoiTrongDoan(hash.get("madoan").toString()));
					stt = i + 1;
					TableDisplay table = new TableDisplay();
					table.setStt(String.valueOf(stt));
					table.setSovb(hash.get("sovb")==null?"":hash.get("sovb").toString());
					table.setCoquandenghi(hash.get("coquandenghi")== null?"":hash.get("coquandenghi").toString());
					String ngayxuatvb = (hash.get("ngayxuatvb")== null?"":hash.get("ngayxuatvb").toString());
					table.setNgayxuatvb(DateUtils.formatDate(ngayxuatvb));
					table.setNoidung(hash.get("noidung")==null?"":hash.get("noidung").toString());
					table.setDiadiemlamviec(hash.get("diadiemlamviec")==null?"":hash.get("diadiemlamviec").toString());
					String ngayden = (hash.get("ngayden")== null?"":hash.get("ngayden").toString());
					String ngaydi = (hash.get("ngaydi")== null?"":hash.get("ngaydi").toString());
					String thoigianvaolamviec = " ";
					if(ngaydi.equals("")){
						thoigianvaolamviec = (DateUtils.formatDate(ngayden));
					}else {
						thoigianvaolamviec = (DateUtils.formatDate(ngayden)) + "đến"+ (DateUtils.formatDate(ngaydi));
					}
					table.setThoigiandoanvaolamviec(thoigianvaolamviec);
					table.setThoigian(String.valueOf(this.getThang()) + "/"+String.valueOf(this.getNam()));
					table.setLinhvuc(hash.get("linhvuc")==null?"":hash.get("linhvuc").toString());
					table.setSoubndtinh(hash.get("soubndtinh")==null?"":hash.get("soubndtinh").toString());
					String ngayphatvb = (hash.get("ngayphathanh")== null?"":hash.get("ngayphathanh").toString());
					table.setNgayphathanh(DateUtils.formatDate(ngayphatvb));
					table.setSohc(hash.get("dssohc")==null?"":hash.get("dssohc").toString().replaceAll(System.getProperty("line.separator"),"<br/>"));
					table.setDsThanhVien((hash.get("nguoitrongdoan").toString()).replaceAll(System.getProperty("line.separator"),"<br/>"));
					table.setQuoctich(hash.get("dsquoctich")==null?"":hash.get("dsquoctich").toString().replaceAll(System.getProperty("line.separator"),"<br/>"));
					table.setGioitinh(hash.get("dsgioitinh")==null?"":hash.get("dsgioitinh").toString().replaceAll(System.getProperty("line.separator"),"<br/>"));
					table.setNamsinh(hash.get("dsnamsinh")==null?"":hash.get("dsnamsinh").toString().replaceAll(System.getProperty("line.separator"),"<br/>"));
					table.setNghenghiep(hash.get("dsnghenghiep")==null?"":hash.get("dsnghenghiep").toString().replaceAll(System.getProperty("line.separator"),"<br/>"));
					table.setSlThanhVienTrongDoan(this.tongSoNguoiTrongDoan(hash.get("madoan").toString()));
					list.add(table);
					
				}
				}
//			}else{
//				list = new ArrayList<TableDisplay>();
//				this.setError("Không có dữ liệu !");
//				return "";
//			}
			String strTongNguoi = "<b>Tổng số: " +String.valueOf(intTongNguoi) +" Người</b>";
			this.setTongsoNguoi(strTongNguoi);
			this.setList(list);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "";
	}
	public String tongSoNguoiTrongDoan(String idDoanvao){
		String result ="0";
		String SQL ="SELECT DISTINCT COUNT(*) AS count FROM dsnguoiden B " +
		" WHERE  B.iddoanvao='"+idDoanvao+"'";
		System.out.println(SQL);
		try{
		ArrayList<HashMap<String, Object>> arr = ConnectDB.getDataTypeList(SQL);
		
		if(arr.size() > 0){
			HashMap<String, Object> hash = arr.get(0);
			result = hash.get("count").toString();
		}
	    }catch(Exception e){
	
	   }
		return result;
	}
	
	private void getMemberList(String idDoanVao) {
		try {
			String SQL = "SELECT DISTINCT A.ten,A.quoctich, A.sohc,A.gioitinh,A.namsinh,A.nghenghiep" +
					"  FROM dsnguoiden A, doanvao B WHERE A.iddoanvao = B.madoan AND B.madoan = '" + idDoanVao+"'";
			ArrayList<HashMap<String, Object>> arr = ConnectDB.getDataTypeList(SQL);
			if(arr.size() > 0){
				StringBuilder dsnguoidi = new StringBuilder();
				StringBuilder dsquoctich = new StringBuilder();
				StringBuilder dshochieu = new StringBuilder();
				StringBuilder dsgioitinh = new StringBuilder();
				StringBuilder dsnamsinh = new StringBuilder();
				StringBuilder dsnghenghiep = new StringBuilder();
				for(int i = 0; i < arr.size(); i++){
					HashMap<String, Object> row = arr.get(i);
					String quotich = row.get("quoctich") == null?"":((String)row.get("quoctich")).trim();
					String hochieu = row.get("sohc") == null?"":((String)row.get("sohc")).trim();
					String gioitinh = row.get("gioitinh") == null?"":((String)row.get("gioitinh")).trim();
					String nguoidi = row.get("ten") == null?"":((String)row.get("ten")).trim();
					String namsinh = row.get("namsinh") == null?"":((String)row.get("ten")).trim();
					String nghenghiep = row.get("nghenghiep") == null?"":((String)row.get("ten")).trim();
					
					dsnguoidi.append( nguoidi+ System.getProperty("line.separator"));
					dsquoctich.append(quotich + System.getProperty("line.separator"));
					dshochieu.append(hochieu + System.getProperty("line.separator"));
					dsgioitinh.append(gioitinh + System.getProperty("line.separator"));
					dsnamsinh.append(namsinh + System.getProperty("line.separator"));
					dsnghenghiep.append(nghenghiep + System.getProperty("line.separator"));
				}
				this.setDsgioitinh(dsgioitinh);
				this.setDshochieu(dshochieu);
				this.setDsnguoidi(dsnguoidi);
				this.setDsquoctich(dsquoctich);
				this.setDsnamsinh(dsnamsinh);
				this.setDsnghenghiep(dsnghenghiep);
			} else {
				return ;
			}

		} catch (Exception e) {
			this.setError("Không thể lấy danh sách người trong đoàn.");
		}
	}
	
	public String setLableInput(){
		String tieuchi = this.tieuChi;
		if(tieuchi.equals("0")){
			this.setLable1("");
			this.setLable2("");
			this.setLable3("");
			this.setLable4("");
			this.setIsDisable1("true");
			this.setIsDisable2("true");
			this.setIsDisable3("true");
			this.setIsDisable4("true");
		}
		else if(tieuchi.equals("1")){
			this.setLable1("Thời gian(Tháng/Năm)(*)");
			this.setLable2("Địa điểm(*)");
			this.setLable3("");
			this.setLable4("");
			this.setIsDisable1("false");
			this.setIsDisable2("false");
			this.setIsDisable3("true");
			this.setIsDisable4("true");
		}
		else if(tieuchi.equals("2")){
			this.setLable1("Giới tính(*)");
			this.setLable2("Quốc tịch(*)");
			this.setLable3("");
			this.setLable4("");
			this.setIsDisable1("false");
			this.setIsDisable2("false");
			this.setIsDisable3("true");
			this.setIsDisable4("true");
		}else if(tieuchi.equals("3")){
			this.setLable1("Quốc tịch(*)");
			this.setLable2("Giới tính(*)");
			this.setLable3("");
			this.setLable4("");
			this.setIsDisable1("false");
			this.setIsDisable2("false");
			this.setIsDisable3("true");
			this.setIsDisable4("true");
		}
		else if(tieuchi.equals("4")){
			this.setLable1("Quốc tịch(*)");
			this.setLable2("Giới tính(*)");
			this.setLable3("Thời gian(*)");
			this.setLable4("");
			this.setIsDisable1("false");
			this.setIsDisable2("false");
			this.setIsDisable3("false");
			this.setIsDisable4("true");
		}
		else if(tieuchi.equals("5")){
			this.setLable1("Quốc tịch(*)");
			this.setLable2("Giới tính(*)");
			this.setLable3("Địa điểm(*)");
			this.setLable4("");
			this.setIsDisable1("false");
			this.setIsDisable2("false");
			this.setIsDisable3("false");
			this.setIsDisable4("true");
		}
		else if(tieuchi.equals("6")){
			this.setLable1("Quốc tịch(*)");
			this.setLable2("Giới tính(*)");
			this.setLable3("Thời gian(Tháng/Năm)(*)");
			this.setLable4("Địa điểm(*)");
			this.setIsDisable1("false");
			this.setIsDisable2("false");
			this.setIsDisable3("false"); 
			this.setIsDisable4("false"); 
		}
		return "okBaoCaoTongHop";
	}
	
	public String reset(){
		UtilsOnScopes.getSession().removeAttribute("beanSearchBaoCaoTongHop");
		this.setError("");
		return "okBaoCaoTongHop";
	}
	
	public String getBieumaukq() {
		return bieumaukq;
	}
	public void setBieumaukq(String bieumaukq) {
		this.bieumaukq = bieumaukq;
	}
	public String getThongtin1() {
		return thongtin1;
	}
	public void setThongtin1(String thongtin1) {
		this.thongtin1 = thongtin1;
	}
	public String getThongtin2() {
		return thongtin2;
	}
	public void setThongtin2(String thongtin2) {
		this.thongtin2 = thongtin2;
	}
	public String getThongtin3() {
		return thongtin3;
	}
	public void setThongtin3(String thongtin3) {
		this.thongtin3 = thongtin3;
	}
	
	public String getLable1() {
		return lable1;
	}
	public void setLable1(String lable1) {
		this.lable1 = lable1;
	}
	
	public String getTongsoNguoi() {
		return tongsoNguoi;
	}
	public void setTongsoNguoi(String tongsoNguoi) {
		this.tongsoNguoi = tongsoNguoi;
	}
	public String getTongSoDoanVao() {
		return tongSoDoanVao;
	}
	public void setTongSoDoanVao(String tongSoDoanVao) {
		this.tongSoDoanVao = tongSoDoanVao;
	}
	public String getTongSoNguoiTrongDoan() {
		return tongSoNguoiTrongDoan;
	}
	public void setTongSoNguoiTrongDoan(String tongSoNguoiTrongDoan) {
		this.tongSoNguoiTrongDoan = tongSoNguoiTrongDoan;
	}
	public List<TableDisplay> getList() {
		return list;
	}
	public void setList(List<TableDisplay> list) {
		this.list = list;
	}
	public StringBuilder getDsnguoidi() {
		return dsnguoidi;
	}
	public void setDsnguoidi(StringBuilder dsnguoidi) {
		this.dsnguoidi = dsnguoidi;
	}
	public StringBuilder getDsquoctich() {
		return dsquoctich;
	}
	public void setDsquoctich(StringBuilder dsquoctich) {
		this.dsquoctich = dsquoctich;
	}
	public StringBuilder getDshochieu() {
		return dshochieu;
	}
	public void setDshochieu(StringBuilder dshochieu) {
		this.dshochieu = dshochieu;
	}
	public StringBuilder getDsgioitinh() {
		return dsgioitinh;
	}
	public void setDsgioitinh(StringBuilder dsgioitinh) {
		this.dsgioitinh = dsgioitinh;
	}

	public int getThang() {
		return thang;
	}

	public void setThang(int thang) {
		this.thang = thang;
	}

	public int getNam() {
		return nam;
	}

	public void setNam(int nam) {
		this.nam = nam;
	}

	
	public String getTieuChi() {
		return tieuChi;
	}

	public void setTieuChi(String tieuChi) {
		this.tieuChi = tieuChi;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public String getLable2() {
		return lable2;
	}

	public void setLable2(String lable2) {
		this.lable2 = lable2;
	}

	public String getLable3() {
		return lable3;
	}

	public void setLable3(String lable3) {
		this.lable3 = lable3;
	}

	public String getLable4() {
		return lable4;
	}

	public void setLable4(String lable4) {
		this.lable4 = lable4;
	}

	public String getThongtin4() {
		return thongtin4;
	}

	public void setThongtin4(String thongtin4) {
		this.thongtin4 = thongtin4;
	}

	public String getIsDisable1() {
		return isDisable1;
	}

	public void setIsDisable1(String isDisable1) {
		this.isDisable1 = isDisable1;
	}

	public String getIsDisable2() {
		return isDisable2;
	}

	public void setIsDisable2(String isDisable2) {
		this.isDisable2 = isDisable2;
	}

	public String getIsDisable3() {
		return isDisable3;
	}

	public void setIsDisable3(String isDisable3) {
		this.isDisable3 = isDisable3;
	}

	public String getIsDisable4() {
		return isDisable4;
	}

	public void setIsDisable4(String isDisable4) {
		this.isDisable4 = isDisable4;
	}

	public StringBuilder getDsnamsinh() {
		return dsnamsinh;
	}

	public void setDsnamsinh(StringBuilder dsnamsinh) {
		this.dsnamsinh = dsnamsinh;
	}

	public StringBuilder getDsnghenghiep() {
		return dsnghenghiep;
	}

	public void setDsnghenghiep(StringBuilder dsnghenghiep) {
		this.dsnghenghiep = dsnghenghiep;
	}



	
	

}
